import request from '@/utils/request'

// 查询商品列表
export function listShop(query) {
    return request({
        url: '/shop/list',
        method: 'get',
        params: query
    })
}


export function addOrEditShop(data) {
    return request({
        url: '/shop/save',
        method: 'post',
        data
    })
}
export function delShop(sid) {
    return request({
        url: '/shop/delete/' + sid,
        method: 'get'
    })
}